import 'element-plus/dist/index.css'
import {createApp} from 'vue'
import {createPinia} from 'pinia'

import App from './App.vue'
import router from './router'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import * as echarts from 'echarts';
import axios from "axios";


const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
const AppBase = createApp(App);
AppBase.config.globalProperties.echarts = echarts;
axios.defaults.baseURL='http://localhost:8080'
app.use(createPinia())
app.use(router)
app.mount('#app')
